import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import lifecycles from "./lifecyle.js";
import App from './App.vue'
import router from './router'
import WujieVue from "wujie-vue3";
import hostMap from "./hostMap";
import Antd from 'ant-design-vue';
// import 'ant-design-vue/dist/reset.css';
// main.js
import microApp from '@micro-zoe/micro-app'

microApp.start()
// vue3
const { setupApp, preloadApp, bus } = WujieVue;

setupApp({
    name: "vitevue3",
    url: hostMap("//localhost:3004/"),
    exec: true,
    prefix: { "prefix-dialog": "/dialog", "prefix-location": "/location" },
    attrs:  { },
    ...lifecycles,
  });
  setupApp({
    name: "umi4",
    url: hostMap("//localhost:3003/"),
    exec: true,
    prefix: { "prefix-dialog": "/dialog", "prefix-location": "/location" },
    attrs:  { },
    ...lifecycles,
  });

const app = createApp(App)
app.use(WujieVue);
app.use(createPinia())
app.use(router)
app.use(Antd)

app.mount('#app')
// 主应用监听事件
